package cn.zbox.dubbo.action;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;

import cn.zbox.dubbo.api.GreetingService;

@Component("annotatedConsumer")
public class GreetingServiceConsumer {

	@Reference
    private GreetingService greetingService;

    public String doSayHello(String name) {
        return greetingService.sayHello(name);
    }
}
